package com.baidu.day03;

public class Demo01 {
    public static void main(String[] args) {
        int[] arr = {10,20,30,40};
        for (int i = 0; i < arr.length; i++) {
            System.out.println(arr[i]);
        }
        //增强for循环 快捷键 arr.iter
        for (int x : arr) {
            System.out.println(x);
        }
    }
}
